package cn.cdyx.ydhl.filter;

import cn.cdyx.common.pojo.Code;
import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Map;

/**
 * @Author Watermelon
 * @Date 2023-02-02 11:20
 */
@Slf4j
public class YDHLFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

        /* HttpServletRequest request = (HttpServletRequest) servletRequest;

        // 获取请求中的所有参数
        Map<String, String[]> parameters = request.getParameterMap();
        log.info("入参："+parameters.toString());*/
        filterChain.doFilter(servletRequest,servletResponse);
    }
}
